package com.neotech.neo4j.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

import org.apache.log4j.Logger;

public class Util {

	private static Logger log = Logger.getLogger("Neo4j-Toolkit");
	
	public static String encode(String input){
		try {
			return URLEncoder.encode(input, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			log.error("Unsupported encoding: "+e.getMessage());
			return null;
		}
	}
	
}
